package com.lew.scott.date;

public class LunarDate {
	int year;
	boolean isLeap;
	int month;
	int day;

	public String toString() {
		return (isLeap ? "闰" : "") + CalendarData.cMonth(month) + "月" + CalendarData.cDay(day);
	}

	public String toFullString() {
		return year + "年" + (isLeap ? "闰" : "") + CalendarData.cMonth(month) + "月" + CalendarData.cDay(day);
	}

	public int compareTo(int month, int day) {
		if (this.month < month) {
			return -1;
		}
		if (this.month > month) {
			return 1;
		}
		return this.day - day;
	}

	public static String toString(int month, int day) {
		return CalendarData.cMonth(month) + "月" + CalendarData.cDay(day);
	}
}
